package com.seafood.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 逆地理编码请求DTO
 */
@Data
public class ReverseGeocodingRequestDTO {
    
    @NotNull(message = "纬度不能为空")
    @DecimalMin(value = "-90.0", message = "纬度范围为-90到90")
    @DecimalMax(value = "90.0", message = "纬度范围为-90到90")
    private BigDecimal latitude;
    
    @NotNull(message = "经度不能为空")
    @DecimalMin(value = "-180.0", message = "经度范围为-180到180")
    @DecimalMax(value = "180.0", message = "经度范围为-180到180")
    private BigDecimal longitude;
    
    private String coordType = "gcj02"; // 坐标系类型
    
    private Boolean needPoi = false; // 是否返回周边POI
    
    private Integer poiRadius = 1000; // POI搜索半径（米）
    
    private String language = "zh_CN"; // 返回语言
}